package com.aier.school.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * UserIcard entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "user_icard_info", catalog = "abc")
public class UserIcardInfo implements java.io.Serializable {

    // Fields

    private Long ueid;
    private Long uid;
    private Long icid;
    private Timestamp cdate;
    private Short type;
    private String img;
    
    //扩展
    private String name_student;    //学生姓名
    private String cardnum;            //卡号
    private String cdate_str;
    private String type_str;
    
    
    // Constructors

    /** default constructor */
    public UserIcardInfo() {
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ueid", unique = true, nullable = false)
    public Long getUeid() {
        return this.ueid;
    }

    public void setUeid(Long ueid) {
        this.ueid = ueid;
    }

    @Column(name = "uid", nullable = false)
    public Long getUid() {
        return this.uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    @Column(name = "icid", nullable = false)
    public Long getIcid() {
        return this.icid;
    }

    public void setIcid(Long icid) {
        this.icid = icid;
    }

    @Column(name = "cdate", nullable = false, length = Constant.num_19)
    public Timestamp getCdate() {
        return this.cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName_student() {
        return name_student;
    }

    public void setName_student(String name_student) {
        this.name_student = name_student;
    }

    public String getCdate_str() {
        return cdate_str;
    }

    public void setCdate_str(String cdate_str) {
        this.cdate_str = cdate_str;
    }

    public String getCardnum() {
        return cardnum;
    }

    public void setCardnum(String cardnum) {
        this.cardnum = cardnum;
    }

    public String getType_str() {
        return type_str;
    }

    public void setType_str(String type_str) {
        this.type_str = type_str;
    }


}